package chapter04.example16;
class Animal{
    public void shout(){
        System.out.println("喵...");
    }
}
class Dog extends Animal {
    public void shout(){
        System.out.println("汪...");
    }
    public void est(){
        System.out.println("吃骨头...");
    }
}
public class example16 {
    public static void main(String[] args){
       Animal an = new Dog();
       Dog dog = (Dog) an;
       dog.shout();
       dog.est();
    }
}
